package com.mxchip.livestar.utils;

import android.content.Context;

import androidx.annotation.NonNull;

//import com.videohigh.hxb.roomclient.ErrorCode;
import com.mxchip.livestar.R;
import com.mxchip.livestar.utils.Utils;

public class ErrorTextUtils {
    public static String getErrorMsg(String errorcode, @NonNull Context context) {
        /*if (ErrorCode.ERROR_CODE_OFF_LINE.equals(errorcode)) {
            return Utils.getString(R.string.off_line_str, context);
        } else if (ErrorCode.ERROR_CODE_IN_THE_CALL.equals(errorcode)) {
            return Utils.getString(R.string.in_the_call_str, context);
        } else if (ErrorCode.ERROR_CODE_TIME_OUT.equals(errorcode)) {
            return Utils.getString(R.string.time_out_str, context);
        } else if (ErrorCode.ERROR_CODE_REFUSING_ANSWER.equals(errorcode)) {
            return Utils.getString(R.string.refusing_answer_str, context);
        } else {
            return Utils.getString(R.string.unknown_error_str, context);
        }*/

        return Utils.getString(R.string.unknown_error_str, context);
    }
}
